<template>
  <div class="back">
    <el-card class="box-card"  >
      <div>
        <el-avatar src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" :size="70"></el-avatar>
        <h3>kk博客网站</h3>
      </div>
      <el-tabs v-model="activeName" >
        <el-tab-pane label="学生登录" name="first"><Login></Login></el-tab-pane>
        <el-tab-pane label="教师登录" name="second"><TeacherLogin></TeacherLogin></el-tab-pane>
        <el-tab-pane label="注册" name="third"><Register></Register></el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import Login from "@/components/Login.vue";
import Register from "@/components/Register.vue";
import TeacherLogin from "@/components/TeacherLogin.vue";

export default {
  name: "Index",
  data(){
    return{
      activeName:''
    }
  },
  components: {
    Login,
    Register,
    TeacherLogin
  },

}
</script>

<style scoped>
.box-card {
  width: 40%;
  height: 80%;
  position: absolute;
  top: 5%;
  right: 5%;
}
.back{
  position : absolute;
  width : 100%;
  height : 100%;
  background-image: url('~@/assets/image.png');
}
</style>